import Home from "../pages/Home/Home";
import About from "../pages/About/About";
import News from "../pages/News/News";
import Message from "../pages/Message/Message";
import NotFound from '../pages/NotFound/NotFound';
import Index from "../pages/Index/Index";
import {Navigate} from 'react-router-dom'

export default [
  {
    path: "/about",
    element: <About />,
  },
  {
    path: "/home",
    element: <Home />,
    children: [
      {
        path: "/home/news",
        element: <News />,
      },
      {
        path: "message",
        element: <Message />,
      },
      {
        index: true,
        element: <Navigate to="/home/news" />,
      },
    ],
  },
  {
    path: "/",
    element: <Index />,
  },
  {
    path: "*",
    element: <NotFound />,
  },
];
